package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.domain.Experiment;
import com.ruoyi.system.api.factory.RemoteAcaExperimentFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(contextId = "remoteAcaExperimentService", value = ServiceNameConstants.ACAEXPERIMENT_SERVICE, fallbackFactory = RemoteAcaExperimentFallbackFactory.class)
public interface RemoteAcaExperimentService {
    @GetMapping("/experiment/acaExperimentList")
    public List<Experiment> list1(Experiment experiment);

    @GetMapping(value = "/experiment/{experimentId}")
    public AjaxResult getInfo(@PathVariable("experimentId") Long experimentId);
}
